#!/bin/bash 
# simple scripts menu
# 
diskspace() {
    clear
    df -k 
}

whoseon() {
    clear
    who
}

menusage() {
    clear
    cat /proc/meminfo
}

PS3="Enter an option: "

select option in "diskspace" "whoseon" "menusage" "exit"; do
    case $option in 
        "exit")
            break
            ;;
        "diskspace")
            diskspace
            ;;
        "whoseon")
            whoseon
            ;;
        "menusage")
            menusage
            ;;
        *)
            echo "Sorry, wrong selection"
            ;;
    esac
done
clear
